package com.bot.app;

import java.io.IOException;

import org.jibble.pircbot.IrcException;
import org.jibble.pircbot.NickAlreadyInUseException;

import com.bot.core.LostBot;

public class LostBotMain {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(final String args[]) throws Exception {
		
		final String server = "irc.freenode.net";
		
		 // Now start our bot up.
        LostBot bot = new LostBot();

        // Enable debugging output.
        bot.setVerbose(false);
        
        // Connect to the IRC server.
        try {
			bot.connect(server);
		} catch (NickAlreadyInUseException e) {
			System.out.println("Nickname already in use.");
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IrcException e) {
			e.printStackTrace();
		}
	}
}